import { http } from '@/utils/http'
import type { PageData } from '@/types/global'
import type {
  DeliveryTasksDTO,
  DeliveryBillDTO,
  DeliveryTaskPageParam,
  DeliveryBillPageParam,
} from '@/types/home'

export const appPageAPI = (data: DeliveryTaskPageParam) => {
  return http<PageData<DeliveryTasksDTO[]>>({
    method: 'POST',
    url: `/sys/app/deliverytask/appPage`,
    data,
  })
}

export const appBillPageAPI = (data: DeliveryBillPageParam) => {
  return http<PageData<DeliveryBillDTO[]>>({
    method: 'POST',
    url: `/sys/app/deliverybill/appPage`,
    data,
  })
}
